package com.gaotai.wangfei.exam.filter.config;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 * 
 * <p>
 * Description: [基础的拦截器接口]
 * </p>
 * 
 * @author <a href="mailto: wangfei@gaotai.cn">王飞</a>
 * @version $Revision$
 */
public interface IBasicInterceptor
{
	/**
	 * 
	 * <p>
	 * 按照原始的web中Filter需要重写的destroy方法做的声明--暂时没有用到
	 * </p>
	 * 
	 * @author:wangfei 2016-3-17
	 * @update: [updatedate] [changer][change description]
	 */
	public void destroy();

	/**
	 * 
	 * <p>
	 * 按照原始的web中Filter需要重写的doFilter方法做的声明
	 * </p>
	 * 
	 * @author:wangfei 2016-3-17
	 * @update: [updatedate] [changer][change description]
	 */
	public void doFilter(ServletRequest request, ServletResponse response, InterceptorChain chain) throws IOException,
		ServletException;

	/**
	 * 
	 * <p>
	 * 按照原始的web中Filter需要重写的init方法做的声明--暂时没有用到
	 * </p>
	 * 
	 * @author:wangfei 2016-3-17
	 * @update: [updatedate] [changer][change description]
	 */
	public void init(String interceptorConfig) throws ServletException;
}
